package com.zx.feign.fallback;

import com.zx.entity.Product;
import com.zx.feign.ProductFeignClient;
import org.springframework.stereotype.Component;

/**
 * @author jack.wu
 * @version 1.0
 * @date 2020-03-09
 */
//@Component
//public class ProductFeignFallback implements ProductFeignClient {
//
//    @Override
//    public Product findById(Integer pid) {
//        Product product = new Product();
//        product.setPid(-1);
//        product.setPname("远程调用商品微服务出现异常，进入容错逻辑");
//        return product;
//    }
//
//    @Override
//    public void reduceInventory(Integer pid, int num) {
//        System.out.println("商品微服务调用发送异常，进入容错方法");
//    }
//}
